package com.handsome.controller;

import com.github.pagehelper.PageHelper;
import com.handsome.dto.BootstrapDataTableDto;
import com.handsome.entity.HsDictionary;
import com.handsome.entity.HsWidget;
import com.handsome.service.LogService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import tk.mybatis.mapper.entity.Example;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Controller
public class LogController extends BaseController {

    @Autowired
    private LogService logService;

    @RequestMapping("/log/index")
    public String index() { return "log/index"; }


    @GetMapping("/log/got_logs")
    @ResponseBody
    public BootstrapDataTableDto getLogs(){

      return logService.getLogs();
    }




}
